package cn.weekimwee.firstlineofcodeforkotlin.unit4

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import cn.weekimwee.firstlineofcodeforkotlin.R
import kotlinx.android.synthetic.main.fragment_right.*

/**
 * Created by Wee Kim Wee on 2018/2/9.
 */
class AnotherFragment :Fragment(){
    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater?.inflate(R.layout.fragment_right,container,false)
    }

    override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        text.text = activity.getString(R.string.another_fragment)
    }
}